package cn.zh.mapper;

import cn.zh.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    Admin selectByUsername(String username);

    void editPersonalInfo(Admin admin);

    void editPersonalPassword(@Param("newPassword") String newPassword,@Param("id") Long id);

    List<Admin> searchAdmins(String username);

    Admin selectByAdminName(String username);

    void insertAdmin(Admin admin);

    void deleteAdmin(@Param("ids") List<Integer> ids);

    void updatePassword(@Param("id") Integer id, @Param("password") String password);

    Admin selectById(Integer id);

    void updateAdmin(Admin admin);

}
